package indigo.locale.errors 
{
	import indigo.logger.error;
	/**
	 * The BraemarErrors class list all possible Errors thrown by the Braemar Framework. 
	 * 
	 */
	public class LocaleError extends Error
	{
		/**
		 * Error message which is thrown when data was not found by the DataManager
		 */				
		public static const DATA_NOT_FOUND:String = "Data not found by the DataManager";
		/**
		 * Error message which is thrown when the selected language isn't supported by the DataManager
		 */				
		public static const LANGUAGE_NOT_SUPPORTED:String = "Language not supported";
		/**
		 * Error message which is thrown when that locale data isn't loaded
		 */
		public static const DATA_NOT_LOADED:String = "Data not loaded";

		/**
		 * Constructor
		 * 
		 */		
		public function LocaleError( message:*, id:* = 0 )
		{
			super( message, id );
			error( this );
		}		
	}
}
